bool TelnetTransport::Start(unsigned short port, bool serverMode) { (void) serverMode; AutoAllocate(); RakAssert(serverMode); return tcpInterface->Start(port, 64); }
template<class T> void Vector<T>::Add(ConstElement& value) { AutoAllocate(); if(_ctorMode != CtorModeEnum::Pod) Construct(_last, &value); else *_last = value; ++_last; }
bool RakNetTransport::Start(unsigned short port, bool serverMode) { AutoAllocate(); rakPeer->InitializeSecurity(0,0,0,0); if (serverMode) { // Allow up to 8 remote systems to login rakPeer->SetMaximumIncomingConnections(8); } return rakPeer->Initialize(8, port, 250, 0); }
template<class T> void Vector<T>::Insert(Element& at, ConstElement& value) { Int offset; Element* element; offset = &at - _origin; AutoAllocate(); element = _origin + offset; MoveRange(element + 1, element, _last); ++_last; if(_ctorMode == CtorModeEnum::Pod) *element = value; else Construct(element, &value); }
template<class T> void Vector<T>::Insert(UInt offset, ConstElement& value) { UInt length = Length(); Element* element; //If the offset is past the end, insert at end if(offset > length) offset = length; AutoAllocate(); element = _origin + offset; MoveRange(element + 1, element, _last); ++_last; if(_ctorMode == CtorModeEnum::Pod) *element = value; else Construct(element, &value); }