CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2047|Reply: 8

Winsock problem

[Copy link]
Post time 9-4-2008 12:02 PM | Show all posts |Read mode
Hey all, help that someone can help...

my problem like this, i got one application reside on server host, and listen to client connection for processing,  it using several ports.

the client sw will use winsock to talk to server by will configured to server ip and remote port number...

once the client recieve input from user, it will send to server via winsock and wait for server reply...
if cant connect it will use next available port and try to connect again.

but sometime the client failed to connect to this server, failed to setup connection from all port numbers provided, happen once a while...meanwhile sometime it no problem at all, actually both server and client running 24 hr, i worry is the winsock component itself causing the problem, and the users said after restart the client sw, everything will work fine...

any one facing this issue before?any solution
Reply

Use magic Report


ADVERTISEMENT


Post time 9-4-2008 12:30 PM | Show all posts
pernah kena masalah ni...
my active directory server.
winsock corrupted and cannot start just after i install antivirus. escan .
solved it by uninstall that antivirus and repair winsock..
i forgot already how i repair it.. but you can google it.. ok


it easy to solve the prob..
Reply

Use magic Report

Post time 9-4-2008 12:41 PM | Show all posts

Reply #1 lcs1788's post

personally i dont think so its a winsock problem..
from my experince winsock cannot be solved by just restart server/cilent pc.
u need to fix something.. if the problem is winsock..

maybe u can give more detail what server and application running in ur server and client.

Thanks
Reply

Use magic Report

 Author| Post time 9-4-2008 01:43 PM | Show all posts

Reply #3 testas's post

somethime it worked fine for whole week, and happen on certain day only...


if current code got problem, y it's worked for sometime, and not working for other day, everyday running the same thing wor?
Reply

Use magic Report

Post time 9-4-2008 06:40 PM | Show all posts

Reply #4 lcs1788's post

what appication running in the server??
website?
for example this cari.com forum.. sometimes u have difficullity to access this forum rite??
it s maybe because of full connection between client (forumers) to cari.com (server)..
that tiime maybe msql database closed port and client cannot access the server.
in that case its not  winsock porblem..

try check with ur application.. maybe on coding site .. the  application maybe not closed connection after user finish their job..
in that time.. application will close the port on timeout basis..
also of course if u restart the server.. everything will alrite.. because. in same time u restart the database...

just my imagination.. because i have no idea what application running on ur server..

Reply

Use magic Report

Post time 10-4-2008 11:00 AM | Show all posts
3 socketstream.c
      

sys\socket.h: No such file or directory

boleh tanya, camna ndak atasi masalah di atas?sy wat kat window.sy budak baru belajar.
Reply

Use magic Report

Follow Us
Post time 10-4-2008 02:19 PM | Show all posts

Reply #6 JohnDeSouza's post

apa tu.. cam tak paham je..
buat c programming ker?
Reply

Use magic Report

Post time 11-4-2008 10:31 AM | Show all posts
ya c programming.ada sesapa yg boleh recommendkan tutorial winsock?satu lagi macammana ndak compilekan program winsock dlm dev c++?asik kuar error x jumpa fail winsock.cam na ndak masukkan file winsock ke dalam dev c++?patutkah sy gunakan visual c++ aja?
Reply

Use magic Report


ADVERTISEMENT


 Author| Post time 17-4-2008 03:21 PM | Show all posts

Reply #5 testas's post

actaully my app acting as client, interact btw DB server and interface/bridge layer, im sure the Db always up, if not, DBA will be boom by users

the app will close/clear buffer for the port as well after receive events.

and the interface open 6ports to listen to client sw connection, and running 24h...and im sure it work fine....because it's dedicated for this client, and only one client was connected to this interface host, all port occupied rarely to happen

i suspect the problem is from client side sw....


anyway thk you testa !
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

2-2-2025 05:39 AM GMT+8 , Processed in 0.423433 second(s), 21 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list