when reading data from the network, i should just read more bytes in then what my clients are sending.
For the longest time, i thought if i did that i would read into the next set of packets.
in theory i could let the packets que up 2k in bytes and if each packet sent was 10 bytes, i could read in ...
Search found 12 matches
- Wed Dec 22, 2004 11:45 pm
- Forum: Coding Questions
- Topic: is my thinking correct?
- Replies: 5
- Views: 1488
- Tue Mar 16, 2004 7:28 am
- Forum: Tricks 'n' Tips
- Topic: Network Server Admin...
- Replies: 1
- Views: 2093
- Sat Mar 13, 2004 8:47 am
- Forum: General Discussion
- Topic: How do I declare a pb dll in vb6
- Replies: 1
- Views: 1104
- Fri Mar 12, 2004 5:43 pm
- Forum: General Discussion
- Topic: How do I declare a pb dll in vb6
- Replies: 1
- Views: 1104
How do I declare a pb dll in vb6
procedurecdll() and proceduredll() are not working.
ex.
procedurecdll savesnapshot(name.s)
endprocedure
vb declare is as follows. declare sub also.
Public Declare Function savesnapshot Lib "c:\temp\netdll.dll" (ByVal name As String)
when i use savesnapshot text1.text i get a bad calling ...
ex.
procedurecdll savesnapshot(name.s)
endprocedure
vb declare is as follows. declare sub also.
Public Declare Function savesnapshot Lib "c:\temp\netdll.dll" (ByVal name As String)
when i use savesnapshot text1.text i get a bad calling ...
- Wed Aug 06, 2003 7:42 am
- Forum: Windows
- Topic: How can I intercept GetDC calls?
- Replies: 2
- Views: 2290
you have more to worry about then people using getdc.. just a simple print screen will do the trick. but back to your original question.. getdc isnt a windows message that can be detected. the only thing i could think of would be to look at what processes are running and maybe kill those off that ...
- Thu Jul 31, 2003 10:56 am
- Forum: General Discussion
- Topic: Looking for more info on packets
- Replies: 0
- Views: 1069
Looking for more info on packets
what happends to packet when they are received but not delt with..
what i mean is.. lets say i start up the server.. the client(s) then sends some packets we will say they are 32 bytes each...and 10 packets total.. do these packets get buffered or stacked untill i do something with them?
what ...
what i mean is.. lets say i start up the server.. the client(s) then sends some packets we will say they are 32 bytes each...and 10 packets total.. do these packets get buffered or stacked untill i do something with them?
what ...
- Wed Jul 30, 2003 10:36 pm
- Forum: Tricks 'n' Tips
- Topic: GetFullPathName
- Replies: 4
- Views: 2612
- Wed Jul 30, 2003 4:20 pm
- Forum: Tricks 'n' Tips
- Topic: GetFullPathName
- Replies: 4
- Views: 2612
GetFullPathName
OpenConsole()
;PathBuffer.s = "" ; uncomment this and the full path works ???
PathBuffer = AllocateMemory(0,255,0) ;this does not work for some ???reason
FileName$ = "client.db"
OpenLibrary(0,"kernel32.dll")
result.w = CallFunction(0,"GetFullPathNameA", FileName$,255,@PathBuffer,NULL)
PrintN ...
;PathBuffer.s = "" ; uncomment this and the full path works ???
PathBuffer = AllocateMemory(0,255,0) ;this does not work for some ???reason
FileName$ = "client.db"
OpenLibrary(0,"kernel32.dll")
result.w = CallFunction(0,"GetFullPathNameA", FileName$,255,@PathBuffer,NULL)
PrintN ...
- Tue Jul 29, 2003 3:03 pm
- Forum: Coding Questions
- Topic: Cant get full string to print out
- Replies: 1
- Views: 1191
Duh!
Duh! figured it out..
DataBuffer = AllocateMemory(1,2000,0)
result = ReceiveNetworkData(CID,DataBuffer,1000)
PrintN(PeekS(databuffer,result))
databuffer hold address of memory,, just needed to feed the address to both of the other functions.. not pointers or address of address lol.
DataBuffer = AllocateMemory(1,2000,0)
result = ReceiveNetworkData(CID,DataBuffer,1000)
PrintN(PeekS(databuffer,result))
databuffer hold address of memory,, just needed to feed the address to both of the other functions.. not pointers or address of address lol.
- Tue Jul 29, 2003 12:16 pm
- Forum: Coding Questions
- Topic: Cant get full string to print out
- Replies: 1
- Views: 1191
Cant get full string to print out
I have used SendNetworkStirng command to send a 31 byte long string, something like a$ = "skfjlskdf kj flsk jdf "+str(TotalClients)+" dfkdjf" just and example. anyway when the client reads this in with receivenetworkdata i get the proper about of bytes read in but when i use peeks on the databuffer ...
- Tue Jul 29, 2003 5:44 am
- Forum: Coding Questions
- Topic: Network programming practice
- Replies: 2
- Views: 1685
Network programming practice
Right now i am testing server/client programming, and my current model uses threads to monitor network activity per client. what would be the best solution to handle network traffic?
Lets say there are many users logged into the server. Now if every user sent data to the server at one time do the ...
Lets say there are many users logged into the server. Now if every user sent data to the server at one time do the ...
- Sun Jul 27, 2003 4:35 pm
- Forum: Feature Requests and Wishlists
- Topic: unsigned, char, int, long?
- Replies: 38
- Views: 22791
My first test program and found this out the hard way
The first little test i did, and find i cant use an unsigned byte. then i look around for the .ub thing and then do a seach for more info.. not surprised to see this mentioned. Why do i have to use a 2 byte var. just to do the same job as 1 byte minus the neg sign (no pun intended). I can only guess ...