search for: sendnbt

Displaying 1 result from an estimated 1 matches for "sendnbt".

Did you mean: sendb
2006 Aug 25
0
Session request packet
...Session_Header { unsigned char type; unsigned char flags; unsigned short length; }; struct NBT_NAME { char name[32]; }; struct NBT_Request { struct NBT_Session_Header NBTSessionHeader; NBT_NAME called; NBT_NAME calling; }; int connectHost(const char* szHost, int iPort); int sendNBT(void* data, size_t count, int socketid); bool getnetbiosname(char* netbiosname, const char* hostname, unsigned char type); //Main function int main(int argc, char *argv[]) { int socketid = 0; if((socketid = connectHost("192.168.2.65", 139)) == -1) cout << "Connect h...