Using PTP Or NTP Protocol With Sockets?

May 21, 2012

Can i implement PTP (precision time protocol) or NTP (simple network timing) with sockets?

If so, how can i use them to send small packages (4 to 33 bytes) with the smallest delay possible?

P.S. I would prefer to know more about PTP, I've heard that it has smaller delay.

View 1 Replies


ADVERTISEMENT

What Protocol Should Use For TCP Or UDP

Jan 14, 2011

I'm developing a filetransfer app in VB.Net..The sizes of the files vary, but can get up to 10+ GB.I already create a chat app as a test.On the clientside I run this code to connect to the server.[code]Can I also use this to transfer files?I want the app to work through a firewall and stuff.So I think I need the outgoing data on the client to go through port 80. On the server I want to be able to receive the data on another port (E.g. 8888). Is this possible?And final question is. What protocol should I use for this purpose TCP or UDP.

View 3 Replies

Broadcast Video Using Tcp/ip Protocol?

Apr 23, 2011

i have made media player for my own i need code that broadcast video over Lan network "clintes/server "as fast as can.

View 1 Replies

COMM-DRV Handshing Protocol?

Jul 15, 2009

What are the possible handshaking protocol available using COMM-DRV for communication through MODEM

View 5 Replies

Create An Application Protocol?

Jun 21, 2010

Does anyone know how to create a Application Protocol? For example on a web browser you click a link that goes to "steam://appid/5654" it opens the steam application and the same happens with a bitorrent magnet link. How would you do this in VB.NET?

View 1 Replies

Sending Messages Through The MSN Protocol?

Apr 18, 2009

I'm working on a program that detects any keyboard or mouse activity, and sends a message through the MSN (or Windows Live Messenger) protocol. The mouse and keyboard thing should be fine, but I don't know how to send messages through the MSN protocol.

View 3 Replies

Using A ActiveX Protocol In VS 2008?

Jul 14, 2009

What I'm trying to do is get the information stored in a little "electronic card" trough a reader connected to my comport. I found a ActiveX protocol to communicate with the reader, but I've no idea how to use it. I'm pretty new to VB.net, and I don't have much experience in coding.So what I'm asking for is how do I use a protocol like this in a VB.net project?

Dim reading As New EmitEpt.EptReading

But that gives me the error "'EmitEpt.EptReadingClass.Friend Sub New()' is not accessible in this context because it is 'Friend'."If I remove "New", then I get the following error: "object reference not set to an instance of an object".

View 2 Replies

Communications :: Figure Out An ASCII Protocol?

Jul 20, 2010

I am trying to work out an ASCII protocol and I have managed to parse everything I need from the transmission, but have not been able to figure out bytes 14-17 and byte 20 of the response. Here is a transmission packet in Hex.

[Code]...

View 2 Replies

FTP The Server Committed A Protocol Violation?

Dec 19, 2010

Currently have a program on the market and just did a major update which 100s of people downloaded, the problem is that that update had a major bug which made it crash. So quickly got to work to fix the bug but everytime I connect my software to the FTP database I get this Error Message:

"The underlying connection was closed: The server committed a protocol violation."

I triple checked my code. Everything is right One minute it was working the next minute it wasn't,My buyers are getting very frustrated and I've had to cancel all orders due to this., The bug in the update software which I have now fixed but this other bug to do with protocol violation.I havent tested if its just now my computer that the error messages comes up or it happens on others.I've tried 3 seperate FTP servers and all the same results?

View 2 Replies

Regex - Get Protocol And Domain From String?

Dec 25, 2010

how can I get the protocol and the domain form a string?

I think I should use regex for this?

Is this correct or is there a better solution?

If this is correct what should the regex code look like?[URL]..

View 1 Replies

The Server Committed A Protocol Violation?

Sep 22, 2009

For some reason i am getting this error when I try to upload to my ftp:The underlying connection was closed: The server committed a protocol violation.This happens at the GetRequestStream() portion of the code. here is my

Private Sub FTPUpload(ByVal p_FilePath As String, ByVal p_FTPServer As String, ByVal p_FileNameOnServer As String, _

[code].....

View 6 Replies

VS 2008 Application Handle A Protocol?

Feb 28, 2010

I don't know how much sense the title makes, but let me give you an example:If you've used Xfire, you may have run across links that allow you to modify things in the program such as your status.This is an example of a status changing link:xfire:status?text=I%20love%20Donkey%20Kong%20Jr.And your status will change to "I love Donkey Kong Jr.

View 4 Replies

VS 2010 - Sending Data Across TCP Protocol?

Jun 22, 2011

I'm using an Asynchronous Method to send data across the TCP Protocol. For the most part it seems to be working, but recently, I've been getting results that have missing bytes to them. How am I actually able to figure out what's missing on the sender's site and make sure all the data gets to the end? For example: my end client receives 1408 bytes of data when I sent 1532 bytes. I sent an array with a length of 1532 and the client only got 1408.

View 5 Replies

Error: The Server Committed A Protocol Violation?

Jan 31, 2010

im trying to either download a webpage source or get the source and load it into a variable but i keep getting an error:The server committed a protocol violation. ection=ResponseHeader Detail='Content-Length' header value is invalid

Public Sub DL_webpage(ByVal url As String)
Dim client As WebClient = New WebClient()
Dim stream As Stream = client.OpenRead(url)

[code].....

View 2 Replies

Threading Error - Protocol Version Not Supported?

Jul 26, 2011

So I have some users that are getting error: This Protocol Version is Not Supported on the following line of code in Red:

Private mobjThread As Thread

Private Sub StartServer()
Try[code].....

I am not able to recreate it on my machine or the 4 other local machines I have tested it on here.

View 6 Replies

VS 2008 An Address Incompatible With The Requested Protocol Was Used?

May 4, 2010

how can i solve this problem?

View 6 Replies

Communicating Trough A RS 232 Comport To A Modbus Protocol Controller?

Apr 19, 2010

I need to interface between a PC and a Microcontroller based Controller to transfer data between the PC and the Controller?

Ive got acces to the register numbers or names in the Microcontroller.

View 2 Replies

RFCOMM Protocol - Connecting Bluetooth Headset To Computer

Jul 6, 2009

How I can connect my bluetooth headset to my computer(programmatically of course) and read/send audio and button data? I heard that it's something to do with the RFCOMM protocol but it might have been that it's not the RFCOMM protocol.

View 7 Replies

Start My Trivial File Transfer Protocol Project ?

Jul 23, 2009

I want to ask you that how i will start with my Trivial file transfer protocol project... and no guidance is available for me....like how to establishment of connection....

My project specifications are :
vb.net
and sql server

These two components m dealing with...my request is to u that how I'll start and give some process to my project.

View 1 Replies

Upload File To Sharepoint Using WebDav Protocol And Program?

Jun 12, 2012

I am trying to upload file to sharepoint. Authorization works fine, but it ends up with status OK instead of CREATED. Eventually the file is not created. I do not understand why it's happening since I used approach that seems to work for others (no complaints).[code]...

View 1 Replies

Vista And TCPClient - Address Incompatible With Requested Protocol Used

Feb 25, 2010

I did a simple program using tcpclient on xp last year and it worked fine but now I have vista installed and I am getting an error now when i try to connect.
The error is "An address incompatible with the requested protocol was used."

View 1 Replies

VS 2005 Winsock - Wrong Protocol For Transaction Request

Jun 7, 2012

I have made a server and a client chat program, and they both use Winsock. It works fine, but then I use multiple clients, I get this message:
Run-time error '40006':
Wrong protocol or connection state for the requested transaction request.

View 1 Replies

Send A File To Any Website In .net Windows Application(using HTTP Protocol)?

May 27, 2011

how to send a file to any website using http protocol in vb.net windows application?

View 3 Replies

Send A File To Any Website Using Http Protocol In Windows Application?

May 27, 2011

How to send a file to any website using http protocol in vb.net windows application

View 1 Replies

[2005] Make An Application Which Logs On To A Server Using The Telnet Protocol?

May 9, 2008

I am trying to make an application which logs on to a server using the telnet protocol runs a couple of commands and stores the output of these commands in a text file.The problem is that I cant really seem to figure out how to negotiate the telnet commands. I have done a packet capture of a telnet session todifferent servers using a packet capturing program and I dont seem to find any fixed pattern. Every server negotiates the command in its own different way and in a different sequence, moreover the commands exchanged are not the same.

What I want to do is to exchange the bare minimum commands which will allow me to log on to any server via telnet, run my commands, take the output and logout.I have searched the internet for such a set of 'general' telnet commands but I wasnt able to find any.

View 13 Replies

Minecraft Server To Client Protocol / 18 Byte Packet On Login Request

Feb 6, 2011

I'm working with the Minecraft Server To Client protocol documentation for a server I am making.It says the packet is 18+ bytes, but I can't seem to figure out what each byte is for.

View 2 Replies

Reading XML Over Sockets

Feb 17, 2010

I am writing an application which involves reading xml over socket. The messages arrive at socket asynchronously. How can I ensure that data is received in form of complete xml elements, validate received data and which classes will be helpful for me in accomplishing my goal.

View 1 Replies

.net - Working Of Tcpclient Sockets In .net?

Jun 2, 2011

I have an application in vb.net which will connect with an hardware device and test its functionality. The hardware device basically spits out data continuosly through Ethernet. That is it recieves some data via com ports and spits out the processed data via ethernet.So my application does both. Thats pretty much the entire app.My problem is i am using tcpclient sockets. Now when i connect a tcpclient to the device using

tcpclient.open(ip,port);

Immediately the device sends some data which comes and get stored in the clientsocket. Then i send a command to it ,only then i read the data from the clientsocket using

tcpclient.getstream().read()

at this time the entire data that is the one which flowed immediately when connected to the device and the one that i actually need after passing command is both acquired. This is undesirable. I need the data which i read only after sending the command. So i was wondering if there is any way to clear the tcpclient socket before we do a read. The manual doesnt show any such method.

View 1 Replies

Binding & Connecting Using Sockets?

Sep 29, 2009

Here is an issue with a socket I am having:

Public Sub Connect(ByVal server As String, ByVal port As Integer)
Dim IP As IPAddress = IPAddress.Parse(server)
Dim EP As IPEndPoint = New IPEndPoint(IP, port)

[Code]....

The socket is declared like this, at the top of the code:

Dim sock As Socket

What is wrong here? It says Object reference not set to an instance of an object, which is a NullReferenceException.

View 1 Replies

C# - Sending A String With Sockets?

Aug 20, 2009

I am using Nektra's Deviare to hook winsock's send method calls. My ideia is to learn to also send messages through the same socket than the original application. So what I'm doing is when i detect the first call to send message, I save the socket id(the first argument of the send function), so I can use it later.

So here is my code:

uint socket = 0;
[DllImport("Ws2_32.dll")]
private static extern int send(uint socket, string buf, int len, int flags);

[Code].....

This last messagebox is poping up always -1. Why should be it?

edit: calling WSAGetLastError() returns 2. Which I do not know what it means, as it doesn't seem to appear on msdn.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved