473,671 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IRC sockets and queries

Jay
ok have this program and i set a socket 2 connect to the server...so i
can chat on the channels and stuff. my question is how would i go about
set a socket directly 2 an individual query?

my program is right here...
http://h1.ripway.com/jay001/CopyofPyIRCnMo.txt

BTW, im trying to set up a connection between IMServ and my computer
and if you dont know wat IMserv is then please follow..
http://www.zevils.com/linux/imirc/ which is bascially a gateway between
AIM and IRC. so, this IMServ creates a query called IMServ where u give
it commands such as signon and stuff. my prog can only connect to the
host the is hosting IMserv and after you are conected to the IMServ
query... nothing else is transmited to the hosting channel or server...
just the query called IMServ...

Once again, my question is how to create a socket directly to a IRC
query...?

Dec 30 '05 #1
9 1696
Jay wrote:
ok have this program and i set a socket 2 connect to the server...so i
can chat on the channels and stuff. my question is how would i go about
set a socket directly 2 an individual query?


Don't take this the hard way, but this question doesn't make sense, and your
source code does neither. It's riddled with inconsistencies and errors, and
I can only barely grasp the fundamental concept behind it...

Anyway, before taking on a project of this size I'd recommend you to do
something smaller in Python and get yourself aquainted with the language
(and maybe programming in general). Python is a language with a shallow
learning curve, but still you must master several things such as
classes/instances/everything is an object/docstrings are string before
being able to programm successfully.

Why not start with the tutorial at www.python.org and work your way up from
there?

--- Heiko.
Dec 30 '05 #2
Jay wrote:
ok have this program and i set a socket 2 connect to the server...so i
can chat on the channels and stuff. my question is how would i go about
set a socket directly 2 an individual query?
The last part of this paragraph is completely incomprehensibl e.
my program is right here...
http://h1.ripway.com/jay001/CopyofPyIRCnMo.txt
Ah, thank you. Now I can see what you're trying to accomplish:
if sys.platform == 'linux':
print "Cant run on a gay linux box!"
print "Get windows! XP or new... Vista!"
sys.exit
Not only is this obnoxious, it doesn't even work.
def dccpopuper(self ):
"""Kill everyone with 30 pop ups requesting a dcc chat"""
try:
for number in range(31):
self.irc.send(" DCC CHAT" + self.CHANNEL+"\ r\n")
irc.generateNIC K()
time.sleep(5)
print number*10
except:
print "I know u want 2 kill them but connect first"


Not only is this _extremely_ obnoxious, but it doesn't even work. Don't
expect any help from me.

-- David

Dec 30 '05 #3
David Wahler wrote:
<snip>
Not only is this obnoxious, it doesn't even work.
<snip>
Not only is this _extremely_ obnoxious, but it doesn't even work. Don't
expect any help from me.
<snip>


Thanks for pointing that out (I must've missed those two examples when I
read the code). And I even pointed him in a direction...

apologetically-y'rs,
--- Heiko.
Dec 30 '05 #4
Jay
LMFAO! those were jokes for my friends. lol.and btw the dccpoper and
bot and crap were jokes that i made up for my friends on the #python
channel in freenode... It was a joke.Anyway.. My bad, its ok if u dont
want to help... no one likes me on this group anyway... u guys just
joined the crowd... btw, wat do u mean
get yourself aquainted with the language

(and maybe programming in general).<

Dude, why do u think im not? ive programmed many small and many big
programs, if this is a noob question then my bad, ive asked many ppl
and they cant answer me and this was my last resort since i knew i
would get this kind of bullshit.
I know most of the language fairly and im tired of coming on here and
always getting pointed to python tutorials, its actually pretty
annying, if you dont have a liable answer then could u please not post
then, it only makes sense. Instead of telling someone that their dumb
and that u dont know python, how about just help answering the
question. But watever, i dont know y but this whole group just hates
me... If anyone has a answer then please feel free to post(unlikely).
But thx anyway..

Dec 31 '05 #5
Jay wrote:
LMFAO!


Yeah, me too. How lame do you think we are?!

--- Heiko.

Dec 31 '05 #7
Heiko Wundram wrote:
Yeah, me too. How lame do you think we are?!


I won't feed the trolls... I won't feed the trolls... I won't feed the
trolls... I won't feed the trolls...

--- Heiko.
Dec 31 '05 #8
J4Y
kk

Dec 31 '05 #9
On Fri, 30 Dec 2005 16:17:01 -0800, Jay wrote:
LMFAO! those were jokes for my friends. lol.and btw the dccpoper and
bot and crap were jokes that i made up for my friends on the #python
channel in freenode... It was a joke.


Yet no one on the channel thought it was funny. It got you kicked and
banned for a while too, but you probably were AFK at the time. Since you
obviously didn't get the message that way, let me try here: stop doing
it, thanks.

--
Thomas Wouters <th****@xs4all. net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

Jan 3 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3888
by: Tero Saarni | last post by:
Hi, I have several threads communicating with each other using events stored in Queues. Threads block on Queue.get() until somebody publishes an event in thread's event queue. I need to add support for sockets to the system. Thread needs to unblock when: - there is socket ready to be read, or
4
6313
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
25
190
by: 4.4.bsd | last post by:
Is there any possible way to use sockets in C, so i can finish a instant messenger program?
0
1314
by: vscarberry | last post by:
Hi, I have a question concerning SQL 2005 and Ad Hoc queries. For performance due to omitting unnecessary joins based on parameters. I have created an Ad Hoc SQL statement to increase performance. Although the CPU and IO reads are greatly reduces the SQL takes longer to execute. Our internal DBA have determined that the newer query was not taking advantage of parallels. Do AD Hoc statements in SQL 2005 qualify for parallel processing? ...
0
8914
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8820
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7433
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6223
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5695
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.