Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

d_lite

@d_lite
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Interrupt a long time operation
    D d_lite

    i think u should see split/merge files project by Bijesh as your lead of clue. the project use CWinThread as working process and there is a good example how to interact to that working process from your main window. you can start and you also cancel the operation too nicely there. the project you could find it codeproject, i forgat the link, but u could always search it (( _; ) ((

    C / C++ / MFC help question database

  • winsock error message
    D d_lite

    Thanks for the reply, yes i have 2 apps, n i think i have to explain how those two works. server app works like any other server apps. it's listen to the port i have specify. in the client, it works like this. if i want to send 10 message for example, for the first message i create socket then i send it to server, after i have send it, i close the socket right away. when i want to send another one, i use the same method again. the reason i do this, because i want to simulate my server as if it was hit by noumerous connection in one time. the strange thing is, after the client receive that error, i shutdown the server, and i shut down the client. after that, when i try to connect to server without starting the server app, it retreive WSAEADDRINUSE rather than WSAECONNREFUSED error message. i have to wait for sometimes, than after that i can receive WSAECONNREFUSED error in my client app, which specify that the current port is not in use. during that time (when client app rec WSAEADDRINUSE with server app off), if i start my server app, it works just fine, there is no error message, as if it was in listen state normally. but when i try to send a message from the client app, i would receive WSAEADDRINUSE in my client app. is there any explaination about this? n how i should deal woth this problem? i was sure the transfer completed, coz i receive the message from the client n i close the client socket normaly too. (( _; ) ((

    C / C++ / MFC help

  • winsock error message
    D d_lite

    Can anyone help me... I have build a simple listening socket program using winsock2 in windows xp. when i start the listening socket it works fine. i send 1000 concurent message in one time, the socket works fine. until i send 1000 message again, then the send application receive error message "address already in use" (WSAEADDRINUSE). then i shutdown the listening application and start it up again, then i try to send a message again using the same port, i cannot connect to the listening port, it says the same error. is there any way that i could done in order to get listening socket status if the send application receive that error. coz, once that error occure, i can't send any message to listening socket. i want to clean up the listening socket again so i can use it again. thanks... (( _; ) ((

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups