Click here to Skip to main content
15,915,975 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Change back color of selected dates in Month calender control in vb.net Pin
HemJoshi1-Oct-08 1:18
HemJoshi1-Oct-08 1:18 
QuestionCreate database table directly from a dataset which has many no. of data table [modified] Pin
snehasish30-Sep-08 21:39
snehasish30-Sep-08 21:39 
AnswerRe: Create database table from a dataset which has no of data table Pin
C1AllenS30-Sep-08 23:10
C1AllenS30-Sep-08 23:10 
GeneralRe: Create database table from a dataset which has many no. of data table Pin
snehasish1-Oct-08 0:57
snehasish1-Oct-08 0:57 
GeneralRe: Create database table from a dataset which has many no. of data table Pin
Paddy Boyd2-Oct-08 2:32
Paddy Boyd2-Oct-08 2:32 
GeneralRe: Create database table from a dataset which has no of data table Pin
rprateek1-Oct-08 14:09
rprateek1-Oct-08 14:09 
QuestionCheck printer connected status before print a job Pin
Jy1130-Sep-08 19:10
Jy1130-Sep-08 19:10 
QuestionKeeping socket connections alive Pin
Mariano Capezzani30-Sep-08 9:07
Mariano Capezzani30-Sep-08 9:07 
Hi all,

I have a server application awaiting incoming connections through a series of sockets set in "listen" mode. I have a number of client applications in remote locations that communicate via tcp/ip, opening the corresponding socket connection to the server and transmitting data.

The problem I have is that the client-to-server socket connections seem to die out after a while, specially in locations where internet is intermittent. When this happens, the connection does not terminate, rather it stays in "connected" state, but data transfer is lost in the web. Even though the winsock.state = sckConnected, the data is not received.

In order to solve this, I implemented a refresh timer, that closes and reopens all sockets in the server once every n seconds. It works, but it's terribly unelegant. I have found no other way of doing this, keeping the connections alive.

Anybody could please give me a suggestion on how this can be done properly? How can I determine if a connection is alive or dead, regardless of what .state says?

Thanks,
Regards.
AnswerRe: Keeping socket connections alive Pin
rprateek1-Oct-08 14:13
rprateek1-Oct-08 14:13 
GeneralRe: Keeping socket connections alive Pin
Mariano Capezzani1-Oct-08 16:12
Mariano Capezzani1-Oct-08 16:12 
QuestionDataAdaptor Update Error Pin
kermit88830-Sep-08 8:54
kermit88830-Sep-08 8:54 
AnswerRe: DataAdaptor Update Error Pin
Wendelius30-Sep-08 9:36
mentorWendelius30-Sep-08 9:36 
GeneralRe: DataAdaptor Update Error Pin
kermit88830-Sep-08 9:40
kermit88830-Sep-08 9:40 
GeneralRe: DataAdaptor Update Error Pin
Wendelius30-Sep-08 9:48
mentorWendelius30-Sep-08 9:48 
QuestionProblems with Flash content viewing in Web Browser Control Pin
Falcon12330-Sep-08 3:15
Falcon12330-Sep-08 3:15 
QuestionNeed Crystal x64 msm Pin
Anoop Brijmohun30-Sep-08 2:32
Anoop Brijmohun30-Sep-08 2:32 
QuestionUser Authentication on the server Pin
kmathebula30-Sep-08 2:07
kmathebula30-Sep-08 2:07 
Questiondial phone no or send sms th mobile modem Pin
Vikash Yadav30-Sep-08 0:23
Vikash Yadav30-Sep-08 0:23 
AnswerRe: dial phone no or send sms th mobile modem Pin
ChandraRam30-Sep-08 1:26
ChandraRam30-Sep-08 1:26 
AnswerRe: dial phone no or send sms th mobile modem Pin
Rajesh Anuhya30-Sep-08 1:42
professionalRajesh Anuhya30-Sep-08 1:42 
QuestionProblems with MS Sync Framework in VB.NET Pin
IgorKuchaev29-Sep-08 22:04
IgorKuchaev29-Sep-08 22:04 
QuestionSearching Inside the .zip Pin
Amit Kushwaha29-Sep-08 21:19
Amit Kushwaha29-Sep-08 21:19 
AnswerRe: Searching Inside the .zip Pin
jzonthemtn30-Sep-08 1:39
jzonthemtn30-Sep-08 1:39 
QuestionHide the enable parameter field prompt in crystal report Pin
member2729-Sep-08 20:53
member2729-Sep-08 20:53 
QuestionExcel cell reference in other sheet vb.net Pin
~Khatri Mitesh~29-Sep-08 20:25
~Khatri Mitesh~29-Sep-08 20:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.