|
Programming and Assembly Language Please read this Topic's rules!! |
![]() |
| LinkBack | Thread Tools | Rate Thread |
| |||
Ive got one working at the monent basicallty writing to a centralised file (when you open a new conversation it creates a new file for that convo) and then writing every second. Its currently works but only ovewr the college network, saving ti a common drive. im dubious about being able to do anything similar with pascal, for a start getting pascal to acknowledge the internet will take some doing, and then getting it to somehow create a file on my server :S I think over the net we'll have to setup some sort of direct connection between the machines perhaps.
__________________ Dave - Spode's Abode Dogs can never have too much fun! See Marge, Weee, weee, woo! wayhey! weeeeeeeee!!! -Homer |
| ||||
yeah maybe pascal is too hopeful, but it looks very possible with C++, just got to learn C++, oh why must collge use such an old language.
__________________ Are you on drugs? If not should you be on drugs? Warranties are there to invalidate. |
| |||
Depending on who's Pascal compiler you are using, it may well be possible. TCP/UDP connections (Internet) are handled by something known as "sockets". If you can import Win32 calls into the Pascal you are using, then you can use the WinSock library to do some of the dirty work for you. The basic way that sockets work for the connecting machine is kinda like this... You initalise the socket library. You create a socket. You will receive a number that corresponds to the socket. Don't lose it! You build up a connection descriptor out of the remote IP (not hostname!), the remote port, and the type of connection you want (Internet generally). You call the Connect function. ![]() With a little luck you'll get returned a connected message. One thing to note though, is that socket operations do not necessarily block. That means you need to use something called "callbacks" in order to program sockets efficiently. A callback is simply where the Winsock library will call a routine in your program if something occurs (Such as data arriving). There's some information on how to do it in Pascal over at http://www.aspelin.com/programming/winsock/ no idea if it'll work, but I've managed sockets programming in a few languages. Áedán
__________________ Any views, thoughts and opinions are entirely my own. They don't necessarily represent those of my employer (BlackBerry). |
| |||
Quote:
Áedán
__________________ Any views, thoughts and opinions are entirely my own. They don't necessarily represent those of my employer (BlackBerry). |
| |||
Chat programs are evil. Currently writing one in Java for uni. The coding itself isn't evil at all. The fact that it's a group project with 11 other people is what makes it such a nightmare. ![]() The fact that Java has socket classes built right in makes it very simple to program. If Pascal doesn't work out I'd say learn Java over C++. But then I have issues with C++. Horrid messy language. ![]()
__________________ |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Rate This Thread | |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's your chat program??? | MrSeanKon | OS, Software, Firmware, and BIOS | 23 | 9th May, 2007 05:34 PM |
Chat anyone? | alexkerhead | ThunderRd's AOA FOLDING@HOME Team | 3 | 26th August, 2004 06:16 PM |
Forum Chat? | LP | Forum Feedback and Suggestion Box | 4 | 6th September, 2003 09:12 AM |
Cat Chat | Southern Man | Random Nonsense! | 0 | 29th November, 2002 06:05 AM |