Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

hooks and callbacks

Name: Anonymous 2011-01-14 10:33

Ive read definitions of both of these and I just dont have a clear idea of what they are. What I think they are is:

hook: replacing an interface function with your own function to change the functionality of an interface

callback: putting a function call inside a function call so when you call a function it calls your function that you gave it

is this right?

Name: Anonymous 2011-01-14 10:48

Read SICP

Name: Anonymous 2011-01-14 10:57

depends on context, eg in some VCS hooks are scripts that are ran pre/post commit.

callback is usually when you're dealing with async programming: you request for some operation that takes time to take place and supply a function that should eventually be called with the result.

Name: Anonymous 2011-01-14 12:08

>>3
the fuck are you on about

Name: VIPPER 2011-01-14 13:07

>>1
Yes

New thread topic: What is the equivelent of hyperterminal on a GNU/linux system?
I need to connect to a remote computer using ANSI terminal trough serial port.

Name: Anonymous 2011-01-14 13:08

Hello, Ive.

People named Ive are usually faggots.

Name: Anonymous 2011-01-14 13:08

>>1
What?

A hook is something you hook into.
A callback is a function that gets called back.

Name: Anonymous 2011-01-14 13:09

>>5
AutismWare

New thread topic: I have 400k reputation at SO

Name: Anonymous 2011-01-14 13:53

>>8
Do you hear that? *crickets chirping*
That's the sound of everyone here that cares.

Name: Anonymous 2011-01-14 13:59

>>9
Sorry, I left the lid off my cricket box again.

Name: VIPPER 2011-01-14 14:10

Help VIPPER

Name: Anonymous 2011-01-14 14:15

>>11
You didn't sage in >>5. How do we know you are the real /prog/'s VIPPER? You didn't even JEWS in two posts!

Name: VIPPER 2011-01-14 14:42

>>12
How do we know you are the real /prog/'s VIPPER?
There is more than one VIPPER here.
You didn't even JEWS in two posts!
There was no need for JEWS as the thread had no un-VIP elements in it.
Besides the thread was finished by >>5.
You didn't sage in >>5.
Because i need help.
I used google and the linux howtos, but could not find what i was looking for.

Name: Anonymous 2011-01-14 15:05

>>5
socat

Name: VIPPER 2011-01-14 16:30

>>14
No thats not what i meant.
What i need is to connect a VT to a computer over rs232 null modem.

Name: Anonymous 2011-01-14 16:53

>>15
Then just enable terminal service on that port.  It's been a while since I linux'd, but look up inittab and getty.

Name: VIPPER 2011-01-14 17:34

>>16
I am not sure what you mean, there is no networking involved, only the serial port.

What i need is a program that emulates an ANSI terminal inside my VT(XFCE terminal) and connected to the other side using serial cable to a computer.

I need something like telnet, but instead of using the TCP/IP i want to use a serial port.

Name: Anonymous 2011-01-14 21:22

>>17
See >>14.

Don't change these.
Name: Email:
Entire Thread Thread List